import React from 'react';
import { Modal } from 'antd';
import CreationForm from './creation/Form';

export default function UploadForm({
  visible, changeVisible, updateTable, setUploading,
}) {
  return (
    <Modal
      visible={visible}
      title="创建新镜像"
      onCancel={() => changeVisible(false)}
      footer={null}
      destroyOnClose
    >
      <CreationForm
        changeVisible={changeVisible}
        updateTable={updateTable}
        setUploading={setUploading}
      />
    </Modal>
  );
}
